/**
 * 
 */
package com.zaprit.common.dao;

import java.util.List;

import com.rdo.common.bo.Attachment;

/**
 * @author Dell
 */
public interface CommonDao
{

	/**
	 * @param userId
	 * @param attachment
	 * @return Attachment
	 */
	public Attachment addAttachment(String userId, Attachment attachment);

	/**
	 * @param userId
	 * @param attachment
	 * @return Boolean
	 */
	public Boolean updateAttachment(String userId, Attachment attachment);

	/**
	 * @param userId
	 * @param attachmentId
	 * @return Attachment
	 */
	public Attachment getAttachment(String userId, String attachmentId);

	/**
	 * @param userId
	 * @param attachmentIds
	 * @return List<Attachment>
	 */
	public List<Attachment> getAttachments(String userId, List<String> attachmentIds);

}
